import { post } from '@/utils/request'

/**
 * 敏感词相关接口
 */
export const sensitiveWordApi = {
  // 获取列表
  getList: (data) =>
    post('/sensitiveWordApi/getList', {
      ...data,
      pageSize: data.pageSize || 10,
      pageNum: data.pageNum || 1,
    }),

  // 新增
  addSensitiveWord: (data) => post('/sensitiveWordApi/add', data),

  // 更新
  updateSensitiveWord: (data) => post('/sensitiveWordApi/edit', data),

  // 删除（可批量）
  deleteSensitiveWord: (ids) => post('/sensitiveWordApi/delete', { ids }),
}
